﻿<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls"
    Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Register TagPrefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages"
    Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="SearchResultUserControl.ascx.cs"
    Inherits="TNO.Education.SearchResult.SearchResultUserControl" %>
<SharePoint:ScriptLink ID="scl_jquery" Name="js/jquery-1.10.2.min.js" runat="server"
    Localizable="false" />
<SharePoint:CssRegistration runat="server" Name="searchresult.css" EnableCssTheming="true" />
<script type="text/javascript">

    $(document).ready(function ($) {

        $(".water").each(function () {
            var tb = $(this);
            if (tb.val() != this.title) {
                tb.removeClass("water");
            }
        });

        $(".water").focus(function () {
            var tb = $(this);
            if (tb.val() == this.title) {
                tb.val("");
                tb.removeClass("water");
            }
        });

        $(".water").blur(function () {
            var tb = $(this);
            if ($.trim(tb.val()) == "") {
                tb.val(this.title);
                tb.addClass("water");
            }
        });

        $('input[id$="txtName"]').bind('keypress', function (event) {
            var regex = new RegExp("^[~()-+_|/'\",;:<>{}?=.*!@#$%^&*]+$");
            var key = String.fromCharCode(!event.charCode ? event.which : event.charCode);
            if (regex.test(key)) {
                event.preventDefault();
                return false;
            }
        });
    });
    
</script>
<div class="search-tcdt">
    <div class="search-title">
        <h2>
            TRA CỨU ĐIỂM THI ĐẠI HỌC - CAO ĐẲNG</h2>
    </div>
    <div class="clear">
    </div>
    <div class="search">
        <div class="search-tab">
            Điểm thi CĐ - ĐH
        </div>
        <div class="clear">
        </div>
        <div class="search-box">
            <div class="search-item">
                <div class="xdt-form-text">
                    <asp:TextBox ID="txtName" runat="server" Text="Nhập họ và tên hoặc SBD"
                        MaxLength="200" CssClass="water" ToolTip="Nhập họ và tên hoặc SBD" BorderStyle="None"></asp:TextBox>
                </div>
                <div>
                    |</div>
                <div class="xdt-form">
                    <asp:DropDownList ID="ddlUniversity" runat="server" BorderStyle="None"
                        AppendDataBoundItems="true">
                        <asp:ListItem Text="--- Chọn trường tuyển sinh ---" Value="" Selected="True"></asp:ListItem>
                    </asp:DropDownList>
                </div>
                <div class="xdt-button">
                    <asp:Button ID="btnSearch" runat="server" Text="Xem điểm" OnClick="btnSearch_Click" />
                </div>
            </div>
            <div class="clear">
            </div>
        </div>
    </div>
    <div class="details">
        <asp:Panel ID="pnlResult" runat="server">
        </asp:Panel>
    </div>
</div>
